package java4_12;

import java.util.Date;

public class Java10 {
	public static void main(String[] args) {
		Date x = new Date();
		for (int i = 1900; i <= x.getYear() + 1900; i++) {
			if ((i % 4 == 0 && i % 100 != 0) || (i % 400 == 0)) {
				System.out.println(i);
			}
		}
	}
}
